package net.doglog;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

@SuppressWarnings("serial")
public class TagServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String tag = BlogUtil.parseName(req.getPathInfo());
		List<Post> thePosts = PostUtil.getPostsByTag(tag);
		BlogUtil.showPosts(thePosts, req, resp);
	}
}
